package com.uduew.sjd.api;

import static com.uduew.sjd.config.Const.GET_QUESTIONNAIRE_LIST;

import androidx.annotation.NonNull;

import com.uduew.sjd.bean.HttpBean;
import com.hjq.http.config.IRequestApi;
import com.hjq.http.config.IRequestBodyStrategy;
import com.hjq.http.config.IRequestType;
import com.hjq.http.model.RequestBodyType;

import java.util.ArrayList;


public class GetQuestionnaireApi implements IRequestApi, IRequestType {



    @NonNull
    @Override
    public String getApi() {
        return GET_QUESTIONNAIRE_LIST;
    }

    /**
     * 获取参数的提交类型
     */
    @NonNull
    @Override
    public IRequestBodyStrategy getBodyType() {
        return RequestBodyType.JSON;
    }

    public static final class ResGetQuestionnaireBean extends HttpBean {

        private ArrayList<HesitancyBean> hesitancy;

        public ArrayList<HesitancyBean> getHesitancy() {
            return hesitancy;
        }
    }

    public static final class HesitancyBean extends HttpBean {
        private String beastly;
        private String giglot;

        private ArrayList<AcapniaBean> acapnia;

        public String getBeastly() {
            return beastly;
        }

        public String getGiglot() {
            return giglot;
        }

        public ArrayList<AcapniaBean> getAcapnia() {
            return acapnia;
        }
    }

    public static final class AcapniaBean {
        private String beastly;
        private String giglot;

        public String getBeastly() {
            return beastly;
        }

        public String getGiglot() {
            return giglot;
        }
    }

}

